package com.lynch.cxsqw.view;

import com.lynch.cxsqw.BaseActivity;
import com.lynch.cxsqw.R;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;

public class IndexActivity extends BaseActivity {

	/**延迟三秒*/
	private final int SPLASH_DISPLAY_LENGHT = 3000; 

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		
		super.onCreate(savedInstanceState);
		setContentView(R.layout.index);
		new Handler().postDelayed(new Runnable() {

			@Override
			public void run() {
				Intent mainIntent = new Intent(IndexActivity.this, MainActivity.class);
				IndexActivity.this.startActivity(mainIntent);
				IndexActivity.this.finish();
			}
		}, SPLASH_DISPLAY_LENGHT);
	}
}
